package xyz.wadewhy.basicstest.easyExcel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.List;

/**
 * @ClassName Province
 * @Description 业务用途
 * @Author zhongzihao
 * @Date 2022/1/7 5:06 下午
 * @Version 1.0
 **/

public class Province {

    @ExcelProperty(index = 0)
    private Long provinceId;

    @ExcelProperty(index = 1)
    private String provinceName;

    @ExcelProperty(index = 2)
    private String cityIds;

    @ExcelProperty(index = 3)
    private String cityName;

    @ExcelProperty(index = 5)
    private String resourceId;

    private List<String> cityIdList;

    public String getCityIds() {
        return cityIds;
    }

    public void setCityIds(String cityIds) {
        this.cityIds = cityIds;
    }

    public List<String> getCityIdList() {
        return Arrays.asList(getCityIds().split(","));
    }

    public void setCityIdList(List<String> cityIdList) {
        this.cityIdList = cityIdList;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }
}

